# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bopscrk
pkgver=v2.4.7.r2.g7eede16
pkgrel=4
epoch=1
pkgdesc='Tool to generate smart wordlists, eg. based on lyrics.'
arch=('any')
groups=('blackarch' 'blackarch-automation' 'blackarch-cracker')
url='https://github.com/R3nt0n/bopscrk'
license=('GPL3')
depends=('python' 'python-requests' 'python-alive-progress')
makedepends=('git' 'python-setuptools')
source=("git+https://github.com/R3nt0n/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd $pkgname

  python setup.py build
}

package() {
  cd "$pkgname"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

